package ai.people.platform.archives.service;

import ai.people.netmon.framework.domain.archives.entity.InformationScoreDetails;
import ai.people.netmon.framework.domain.archives.vo.InformationDataBasicFieldVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ligua
* @description 针对表【information_score_details(积分明细表)】的数据库操作Service
* @createDate 2022-06-06 16:11:38
*/
public interface InformationScoreDetailsService extends IService<InformationScoreDetails> {

    /**
     * 检查是否已查看
     *
     * @param userId   用户id
     * @param dataList 数据列表
     * @return {@link List}<{@link InformationScoreDetails}>
     */
    List<InformationScoreDetails> checkHasViewed(Long userId, List<InformationDataBasicFieldVO> dataList);

    /**
     * 获取已消费积分
     *
     * @param userId 用户id
     * @return {@link Long}
     */
    Long getSpeedScore(Long userId);
}
